home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
watcom
/
w_modex
/
xprim.hpp
< prev
next >
Wrap
C/C++ Source or Header
|
1994-01-19
|
912b
|
32 lines
#ifndef X_PRIMITIVES_HPP
#define X_PRIMITIVES_HPP
#include "xtypes.hpp"
// Waits for vertical retrace
void wait_for_retrace(void);
// Page setting functions
void setDrawPage(unsigned int page);
void setVisiblePage(unsigned int page);
// Screen clearing functions
void clearX(BYTE color);
// Drawing functions
void putpixelX(COORD x, COORD y, BYTE color);
BYTE getpixelX(COORD x, COORD y);
void boxX(COORD x1, COORD y1, COORD x2, COORD y2, BYTE color);
void filledboxX(COORD x1, COORD y1, COORD x2, COORD y2, BYTE color);
void circleX(COORD x, COORD y, DIST r, BYTE color);
void filledcircleX(COORD x, COORD y, DIST r, BYTE color);
void lineX(COORD lx1, COORD ly1, COORD lx2, COORD ly2, BYTE color);
// Text output functions
int loadfontX(char *fname);
void putchX(COORD x, COORD y, char c, BYTE color);
void putstringX(COORD x, COORD y, char *str, BYTE color);
#endif